﻿namespace Core.Ndatax.Domain.Ris.CancelRegisterOrCheckInDto
{
    public class CancelRegisterOrCheckInDto
    {
        public string requestTime { get; set; } = DateTime.Now.ToString("yyyyMMddHHmmssfff");
        public Code Code { get; set; } = new();
        public Patientinfo PatientInfo { get; set; } = new();
        public Requestinfolist[] RequestInfoList { get; set; }
    }

    public class Code
    {
        public string ControlName { get; set; } = "";
        public string ActionName { get; set; } = "";
        public string msgId { get; set; } = "self" + DateTime.Now.ToString("yyyyMMddHHmmssfff");
        public string sender { get; set; } = "2.16.840.1.113883.4.487.2.1.3";
        public string receiver { get; set; } = "2.16.840.1.113883.4.487.2.1.3";
    }

    public class Patientinfo
    {
        public string patientID { get; set; } = "";
        public string name { get; set; } = "";
        public int sex { get; set; }
        public string datetimeOfBirth { get; set; } = "";
        public string age { get; set; } = "";
        public string weight { get; set; } = "";
        public string idNumber { get; set; } = "";
        public string nationality { get; set; } = "";
        public string nativePlace { get; set; } = "";
        public string placeOfBirth { get; set; } = "";
        public string ethnicity { get; set; } = "";
        public string occupation { get; set; } = "";
        public string marriage { get; set; } = "";
        public string bloodType { get; set; } = "";
        public string address { get; set; } = "";
        public string telephone { get; set; } = "";
        public string familyTelephone { get; set; } = "";
        public int patientType { get; set; }
        public int registrationType { get; set; }
        public string registrationDepID { get; set; } = "";
        public string registrationDepName { get; set; } = "";
        public string outpatientID { get; set; } = "";
        public string hospitalizationID { get; set; } = "";
        public string healthExaminationID { get; set; } = "";
        public string emergencyNumber { get; set; } = "";
        public string carteVitalNo { get; set; } = "";
        public string socialSecurityCardNo { get; set; } = "";
        public string medicalCardNo { get; set; } = "";
        public string inpatientAreaID { get; set; } = "";
        public string inpatientAreaName { get; set; } = "";
        public string bedNumber { get; set; } = "";
        public int visitNo { get; set; } = 0;
    }

    public class Requestinfolist
    {
        public Requestinfo RequestInfo { get; set; } = new();
    }

    public class Requestinfo
    {
        public string RISRequisitionID { get; set; } = "";
        public string OperatorId { get; set; } = "";
        public string OperatorName { get; set; } = "";
        public string OperateDT { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        public string Remark { get; set; } = "";
    }


}
